import {
	createApp
} from 'vue'
import App from './App.vue'
import router from './router/index.js' //使用this.$router的形式访问路由，使用this.$route的形式访问当前路由
import Vant from 'vant'; //引入Vant
import 'vant/lib/index.css'
import axios from './util/http/axios.js' 				//Axios网络请求
import rsaEncrypt from './util/encrypt/rsaEncrypt.js' 	//RSA加密
import VueCookies from 'vue-cookies' 					//VueCookies

const app = createApp(App)

//注册全局组件
import MyTabbar from './components/MyTabbar.vue'
app.component("MyTabbar", MyTabbar)

//注册全局属性
app.config.globalProperties.$axios = axios
app.config.globalProperties.$rsaEncrypt = rsaEncrypt
app.config.globalProperties.$cookies = VueCookies

//注册路由等
app.use(router).use(Vant).mount('#app')
